﻿// 基于准备好的dom，初始化echarts实例
		var myChart = echarts.init(document.getElementById('map1'));

		var data = [ {
			name : '大理市',
			value : 2
		}, {
			name : '剑川',
			value : 1
		}, {
			name : '永平县',
			value : 1
		},{
			name : '云龙县',
			value : 6
		}, {
			name : '洱源县',
			value : 1
		}, {
			name : '弥渡县',
			value : 2
		}, {
			name : '巍山县',
			value : 1
		}, {
			name : '南涧县',
			value : 2
		}, {
			name : '漾濞县',
			value : 2
		}, {
			name : '宾川县',
			value : 4
		}, {
			name : '鹤庆县',
			value : 1
		}, {
			name : '泸西县',
			value : 5
		}, {
			name : '建水县',
			value : 6
		}, {
			name : '屏边县',
			value : 2
		}, {
			name : '元阳县',
			value : 1
		}, {
			name : '石屏县',
			value : 5
		}, {
			name : '红河县',
			value : 1
		}, {
			name : '开远市',
			value : 3
		}, {
			name : '蒙自市',
			value : 4
		}, {
			name : '弥勒',
			value : 2
		}, {
			name : '金平县',
			value : 1
		}, {
			name : '个旧',
			value : 1
		}, {
			name : '东川区',
			value : 1
		}, {
			name : '石林',
			value : 3
		}, {
			name : '禄劝县',
			value : 2
		}, {
			name : '嵩明县',
			value : 1
		}, {
			name : '呈贡区',
			value : 1
		}, {
			name : '安宁市',
			value : 1
		}, {
			name : '寻甸县',
			value : 1
		}, {
			name : '富民县',
			value : 2
		}, {
			name : '晋宁区',
			value : 1
		}, {
			name : '盘龙区',
			value : 1
		}, {
			name : '西山区',
			value : 2
		}, {
			name : '盐津县',
			value : 1
		}, {
			name : '昭阳区',
			value : 2
		}, {
			name : '永善县',
			value : 3
		}, {
			name : '彝良县',
			value : 1
		}, {
			name : '鲁甸县',
			value : 3
		}, {
			name : '陆良县',
			value : 1
		}, {
			name : '罗平',
			value : 4
		}, {
			name : '师宗',
			value : 3
		}, {
			name : '会泽县',
			value : 5
		}, {
			name : '富源县',
			value : 2
		}, {
			name : '马龙县',
			value : 2
		}, {
			name : '宣威市',
			value : 1
		}, {
			name : '永胜县',
			value : 2
		}, {
			name : '玉龙县',
			value : 2
		}, {
			name : '华坪县',
			value : 1
		}, {
			name : '武定县',
			value : 2
		}, {
			name : '双柏县',
			value : 1
		}, {
			name : '牟定县',
			value : 2
		}, {
			name : '姚安县',
			value : 1
		}, {
			name : '禄丰',
			value : 1
		}, {
			name : '元谋县',
			value : 1
		}, {
			name : '大姚县',
			value : 1
		}, {
			name : '思茅',
			value : 2
		}, {
			name : '西盟',
			value : 1
		}, {
			name : '景东',
			value : 3
		}, {
			name : '镇沅',
			value : 1
		}, {
			name : '江城县',
			value : 1
		}, {
			name : '墨江',
			value : 2
		}, {
			name : '新平县',
			value : 1
		}, {
			name : '通海县',
			value : 1
		}, {
			name : '华宁县',
			value : 3
		}, {
			name : '峨山县',
			value : 1
		}, {
			name : '澄江县',
			value : 4
		}, {
			name : '红塔区',
			value : 1
		}, {
			name : '元江县',
			value : 3
		}, {
			name : '易门县',
			value : 2
		}, {
			name : '凤庆县',
			value : 1
		}, {
			name : '云县',
			value : 1
		}, {
			name : '永德县',
			value : 1
		}, {
			name : '勐海县',
			value : 1
		}, {
			name : '广南',
			value : 5
		}, {
			name : '丘北县',
			value : 2
		}, {
			name : '砚山县',
			value : 1
		}, {
			name : '西畴县',
			value : 1
		}, {
			name : '文山市',
			value : 2
		}, {
			name : '芒市',
			value : 1
		}, {
			name : '梁河县',
			value : 2
		}, {
			name : '盈江县',
			value : 1
		}, {
			name : '瑞丽市',
			value : 1
		}, {
			name : '陇川县',
			value : 1
		}, {
			name : '腾冲',
			value : 5
		}, {
			name : '施甸县',
			value : 2
		}, {
			name : '龙陵县',
			value : 4
		}, {
			name : '昌宁',
			value : 3
		}, {
			name : '贡山县',
			value : 1
		}, {
			name : '兰坪',
			value : 1
		}, {
			name : '福贡县',
			value : 1
		}, {
			name : '香格里拉市',
			value : 1
		}, {
			name : '维西县',
			value : 1
		}, {
			name : '德钦县',
			value : 1
		}

		];
		var geoCoordMap = {
		    '大理白族自治州' : [ 100.268717,25.860339 ],
			'红河哈尼族彝族自治州' : [ 103.028554,23.582931],
			'昆明' : [ 102.750691,25.363687 ],
			'昭通' : [ 103.846542,27.960748 ],
			'曲靖' : [ 103.833481,25.805695 ],
			'丽江' : [ 100.444606,27.15703 ],
			'楚雄彝族自治州': [ 101.552234,25.572033 ],
			'普洱' : [ 100.967448,23.014788 ],
			'玉溪' : [ 101.983241,24.172965 ],
			'临沧' : [ 99.912437,24.232728 ],
			'西双版纳傣族自治州' : [ 100.808617,22.188536 ],
			'文山壮族自治州' : [ 104.344455,23.693018
				],
			'德宏傣族景颇族自治州' : [ 98.190065,24.627621 ],
			'保山' : [ 98.799556,25.356301 ],
			'怒江傈僳族自治州' : [ 98.990922,26.803798 ],
			'迪庆藏族自治州' : [ 99.639966,28.081221 ],
			
			'大理市' : [ 100.237669, 25.599951 ],
			'剑川' : [ 99.908641, 26.54381 ],
			'永平县' : [ 99.541171, 25.473077 ],
			'云龙县' : [ 99.379141, 25.892205 ],
			'洱源县' : [ 99.968635, 26.119314 ],
			'弥渡县' : [ 100.499311, 25.350642 ],
			'巍山县' : [ 100.319652, 25.233825 ],
			'南涧县' : [ 100.498997, 25.049841 ],
			'漾濞县' : [ 99.980451, 25.676157 ],
			'宾川县' : [ 100.582481, 25.836029 ],
			'鹤庆县' : [ 100.180192, 26.568524 ],
			'泸西县' : [ 103.776547, 24.539878 ],
			'建水县' : [ 102.83574, 23.641733 ],
			'屏边县' : [ 103.683494, 22.990488 ],
			'元阳县' : [ 102.843158, 23.226995 ],
			'石屏县' : [ 102.501872, 23.712269 ],
			'红河县' : [ 102.421227, 23.379531 ],
			'开远市' : [ 103.261476,23.721761 ],
			'蒙自市' : [ 103.373271, 23.402876 ],
			'弥勒市' : [ 103.422639, 24.418245 ],
			'金平县' : [ 103.237516, 22.788842 ],
			'个旧' : [ 103.164576, 23.366256 ],
			'东川区' : [ 103.195602, 26.090871 ],
			'石林' : [ 103.281839, 24.776835 ],
			'禄劝县' : [ 102.47661, 25.56199 ],
			'嵩明县' : [ 103.042414, 25.345715 ],
			'呈贡区' : [ 102.830922, 24.891084 ],
			'安宁市' : [ 102.483673, 24.925692 ],
			'寻甸县' : [ 103.266789, 25.567676 ],
			'富民县' : [ 102.505048, 25.228869 ],
			'晋宁区' : [ 102.602418, 24.676887 ],
			'盘龙区' : [ 102.759101, 25.123681 ],
			'西山区' : [ 102.673857, 25.042937 ],
			'盐津县' : [ 104.240429, 28.113619 ],
			'昭阳区' : [ 103.71462, 27.326401 ],
			'永善县' : [ 103.646294, 28.234467 ],
			'彝良县' : [ 104.052718, 27.633482 ],
			'鲁甸县' : [ 103.563837, 27.19285 ],
			'陆良县' : [ 103.674582, 25.036949 ],
			'罗平' : [ 104.31436, 24.890258 ],
			'师宗' : [ 103.990981, 24.829307 ],
			'会泽县' : [ 103.301762, 26.424474 ],
			'富源县' : [ 104.261474, 25.68054 ],
			'马龙县' : [ 103.581997, 25.434749 ],
			'宣威市' : [ 104.109851, 26.225857 ],
			'永胜县' : [ 100.76103, 26.692274 ],
			'玉龙县' : [ 100.269089, 26.840152 ],
			'华坪县' : [ 101.27128, 26.633931 ],
			'武定县' : [ 102.410532, 25.538437 ],
			'双柏县' : [ 101.646107, 24.697263 ],
			'牟定县' : [ 101.554631, 25.31963 ],
			'姚安县' : [ 101.082951, 25.37326 ],
			'禄丰' : [ 102.078632, 25.159232 ],
			'元谋县' : [ 101.880445, 25.710635 ],
			'大姚县' : [ 101.331717, 25.727341 ],
			'思茅' : [ 100.989879, 22.798095 ],
			'西盟' : [ 99.601796, 22.653057 ],
			'景东' : [ 100.829865, 24.452127 ],
			'镇沅' : [ 101.265622, 24.007954 ],
			'江城县' : [ 101.874757, 22.586444 ],
			'墨江' : [ 101.697434, 23.44701 ],
			'新平县' : [ 101.984743, 24.082165 ],
			'通海县' : [ 102.733573, 24.11921 ],
			'华宁县' : [ 102.934917, 24.19779 ],
			'峨山县' : [ 102.41285, 24.174804 ],
			'澄江县' : [ 102.918004, 24.678627 ],
			'红塔区' : [ 102.596983, 24.302642 ],
			'元江县' : [ 102.004505, 23.602971 ],
			'易门县' : [ 102.167235, 24.678717 ],
			'凤庆县' : [ 99.933264, 24.587786 ],
			'云县' : [ 100.127806, 24.444123 ],
			'永德县' : [ 99.261627, 24.024607 ],
			'勐海县' : [ 100.462321, 21.962093 ],
			'广南' : [ 105.059857, 24.052991 ],
			'丘北县' : [ 104.174592, 24.05937 ],
			'砚山县' : [ 104.342976, 23.611222 ],
			'西畴县' : [ 104.67795, 23.445128 ],
			'文山市' : [ 104.236819, 23.394332 ],
			'芒市' : [ 98.596536, 24.439965 ],
			'梁河县' : [ 98.29911, 24.812096 ],
			'盈江县' : [ 97.938427, 24.710221 ],
			'瑞丽市' : [ 97.861336, 24.023081 ],
			'陇川县' : [ 97.79968, 24.191314 ],
			'腾冲' : [ 98.497595, 25.027403 ],
			'施甸县' : [ 99.197769, 24.728572 ],
			'龙陵县' : [ 98.69575, 24.591758 ],
			'昌宁' : [ 99.611617, 24.834247 ],
			'贡山县' : [ 98.672379, 27.746998 ],
			'兰坪' : [ 99.541143, 26.442905 ],
			'福贡县' : [ 98.873349, 26.908313 ],
			'香格里拉市' : [ 99.703996, 27.837038 ],
			'维西县' : [ 99.310983, 27.199125 ],
			'德钦县' : [ 98.925603, 28.471864 ],
		};
        var imgMap = 
        	{   
        		'大理市':{"imgurl":"images/dilitup/1.jpg,images/2.jpg","imgname":"云南下关沱茶,大理独头大蒜"},
        		'剑川':{"imgurl":"images/3.jpg","imgname":"剑川木雕"},
        		'永平县':{"imgurl":"images/4.jpg","imgname":"永平县"},
        		'云龙县':{"imgurl":"images/5.jpg,images/6.jpg,images/7.jpg,images/8.jpg,images/9.jpg,images/10.jpg","imgname":"云龙矮脚鸡,诺邓黑猪,诺邓火腿,麦地湾梨,云龙绿茶,云龙茶"},
        		'洱源县':{"imgurl":"images/11.jpg","imgname":"洱源梅子"},
        		'弥渡县':{"imgurl":"images/12.jpg,images/13.jpg","imgname":"弥渡大蒜,弥渡卷蹄"},
        		'巍山县':{"imgurl":"images/14.jpg","imgname":"巍山红雪梨"},
        		'南涧县':{"imgurl":"images/15.jpg,images/16.jpg","imgname":"无量山乌骨鸡,南涧绿茶"},
        		'漾濞县':{"imgurl":"images/17.jpg,images/18.jpg","imgname":"漾濞大泡核桃,漾濞核桃"},
        		'宾川县':{"imgurl":"images/19.jpg,images/20.jpg,images/21.jpg,images/22.jpg","imgname":"宾川拉乌核桃,宾川柑橘,宾川红提葡萄,宾川朱苦拉咖啡"},
        		'鹤庆县':{"imgurl":"images/23.jpg,","imgname":"鹤庆乾酒"},
        		'泸西县':{"imgurl":"images/24.jpg,images/25.jpg,images/26.jpg,images/27.jpg,images/28.jpg","imgname":"泸西除虫菊,红河灯盏花,高原梨,泸西苦荞,泸西灯盏花"},
        		'建水县':{"imgurl":"images/29.jpg,images/30.jpg,images/31.jpg,images/32.jpg,images/33.jpg,images/34.jpg,","imgname":"建水紫陶,建水酸石榴,建水草芽,红河灯盏花,建水洋葱,建水小米"},
        		'屏边县':{"imgurl":"images/35.jpg,images/36.jpg","imgname":"云南矮马,屏边荔枝"},
        		'元阳县':{"imgurl":"images/37.jpg","imgname":"元阳香蕉"},
        		'石屏县':{"imgurl":"images/38.jpg,images/39.jpg,images/40.jpg,images/41.jpg,images/42.jpg","imgname":"石屏青绵羊,红河灯盏花,石屏杨梅,石屏豆腐皮,石屏豆腐"},
        		'红河县':{"imgurl":"images/43.jpg","imgname":"红河棕榈"},
        		'开远市':{"imgurl":"images/44.jpg,images/45.jpg,images/46.jpg","imgname":"开远木槿,开远蜜桃,红河灯盏花"},
        		'蒙自市':{"imgurl":"images/47.jpg,images/48.jpg,images/49.jpg,images/50.jpg","imgname":"蒙自石榴,蒙自过桥米线,红河灯盏花,蒙自甜石榴"},
        		'弥勒':{"imgurl":"images/51.jpg,images/52.jpg","imgname":"弥勒葡萄,红河灯盏花"},
        		'金平县':{"imgurl":"images/53.jpg","imgname":"金平香蕉"},
        		'个旧':{"imgurl":"images/54.jpg","imgname":"红河灯盏花"},
        		'东川区':{"imgurl":"images/55.jpg","imgname":"东川面条"},
        		'石林':{"imgurl":"images/56.jpg,images/57.jpg,images/58.jpg","imgname":"圭山山羊,石林乳饼,石林柿饼"},
        		'禄劝县':{"imgurl":"images/59.jpg,images/60.jpg","imgname":"禄劝撒坝猪,撒坝火腿"},
        		'嵩明县':{"imgurl":"images/61.jpg","imgname":"嵩明生菜"},
        		'呈贡区':{"imgurl":"images/62.jpg","imgname":"呈贡宝珠梨"},
        		'安宁市':{"imgurl":"images/63.jpg","imgname":"安宁红梨"},
        		'寻甸县':{"imgurl":"images/64.jpg","imgname":"寻甸牛干巴"},
        		'富民县':{"imgurl":"images/65.jpg,images/66.jpg","imgname":"富民杨梅,富民茭瓜"},
        		'晋宁区':{"imgurl":"images/67.jpg","imgname":"夕阳葵花子"},
        		'盘龙区':{"imgurl":"images/68.jpg","imgname":"云南白药"},
        		'西山区':{"imgurl":"images/69.jpg,images/70.jpg","imgname":"谷律花椒,古律花椒"},
        		'盐津县':{"imgurl":"images/71.jpg","imgname":"盐津乌骨鸡"},
        		'昭阳区':{"imgurl":"images/72.jpg,images/73.jpg","imgname":"昭通苦荞,昭通苹果"},
        		'永善县':{"imgurl":"images/74.jpg,images/75.jpg,images/76.jpg","imgname":"永善花椒,马楠半细毛羊,溪洛渡花椒"},
        		'彝良县':{"imgurl":"images/77.jpg","imgname":"云南天麻"},
        		'鲁甸县':{"imgurl":"images/78.jpg,images/79.jpg,images/80.jpg","imgname":"昭通土豆,鲁甸青花椒,鲁甸大麻核桃"},
        		'陆良县':{"imgurl":"images/81.jpg","imgname":"滇陆猪"},
        		'罗平':{"imgurl":"images/82.jpg,images/83.jpg,images/84.jpg,images/85.jpg","imgname":"罗平菜油,罗平黄山羊,罗平小黄姜,罗平蜂蜜"},
        		'师宗':{"imgurl":"images/86.jpg,images/87.jpg,images/88.jpg","imgname":"高良苡仁米,师宗黑尔糯米,师宗黑山羊"},
        		'会泽县':{"imgurl":"images/89.jpg,images/90.jpg,images/91.jpg,images/92.jpg,images/93.jpg","imgname":"火红黑山羊,会泽大洋芋,会泽宝珠梨,盐水石榴,乐业辣椒"},
        		'富源县':{"imgurl":"images/94.jpg,images/95.jpg","imgname":"富源魔芋,富源大河乌猪"},
        		'马龙县':{"imgurl":"images/96.jpg,images/97.jpg","imgname":"马龙苹果,深沟鸡"},
        		'宣威市':{"imgurl":"images/98.jpg","imgname":"宣威火腿"},
        		'永胜县':{"imgurl":"images/99.jpg,images/100.jpg","imgname":"程海螺旋藻,他留乌骨鸡"},
        		'玉龙县':{"imgurl":"images/101.jpg,images/102.jpg","imgname":"丽江雪桃,丽江烟叶"},
        		'华坪县':{"imgurl":"images/103.jpg","imgname":"华坪芒果"},
        		'武定县':{"imgurl":"images/104.jpg,images/105.jpg","imgname":"武定鸡,武定壮鸡"},
        		'双柏县':{"imgurl":"images/106.jpg","imgname":"白竹山茶"},
        		'牟定县':{"imgurl":"images/107.jpg,images/108.jpg","imgname":"牟定腐乳,牟定油腐乳"},
        		'姚安县':{"imgurl":"images/109.jpg","imgname":"姚安山药"},
        		'禄丰':{"imgurl":"images/110.jpg","imgname":"禄丰香醋"},
        		'元谋县':{"imgurl":"images/111.jpg","imgname":"元谋番茄"},
        		'大姚县':{"imgurl":"images/112.jpg","imgname":"大姚核桃"},
        		'思茅':{"imgurl":"images/113.jpg,images/114.jpg","imgname":"普洱茶,思茅咖啡"},
        		'西盟':{"imgurl":"images/115.jpg","imgname":"西盟米荞"},
        		'景东':{"imgurl":"images/116.jpg,images/117.jpg,images/118.jpg","imgname":"景东紫胶,景东芒果,景东核桃"},
        		'镇沅':{"imgurl":"images/119.jpg","imgname":"普洱飘鸡"},
        		'江城县':{"imgurl":"images/120.jpg","imgname":"普洱烟叶"},
        		'墨江':{"imgurl":"images/121.jpg,images/122.jpg","imgname":"普洱咖啡,墨江紫米"},
        		'新平县':{"imgurl":"images/123.jpg","imgname":"玉溪烟叶"},
        		'通海县':{"imgurl":"images/124.jpg","imgname":"玉溪烟叶"},
        		'华宁县':{"imgurl":"images/125.jpg,images/126.jpg,images/127.jpg","imgname":"华宁柑桔,玉溪烟叶,华宁柿子"},
        		'峨山县':{"imgurl":"images/128.jpg","imgname":"玉溪烟叶"},
        		'澄江县':{"imgurl":"images/129.jpg,images/130.jpg,images/131.jpg,images/132.jpg","imgname":"抚仙湖抗浪鱼,澂江藕,玉溪烟叶,抚仙湖银鱼"},
        		'红塔区':{"imgurl":"images/133.jpg","imgname":"玉溪烟叶"},
        		'元江县':{"imgurl":"images/134.jpg,images/135.jpg,images/136.jpg","imgname":"元江鲤,元江芒果,玉溪烟叶"},
        		'易门县':{"imgurl":"images/137.jpg,images/138.jpg","imgname":"玉溪烟叶,易门豆豉"},
        		'凤庆县':{"imgurl":"images/139.jpg","imgname":"凤庆滇红茶"},
        		'云县':{"imgurl":"images/140.jpg","imgname":"云县白花木瓜"},
        		'永德县':{"imgurl":"images/141.jpg","imgname":"永德芒果"},
        		'勐海县':{"imgurl":"images/142.jpg","imgname":"勐海茶"},
        		'广南':{"imgurl":"images/143.jpg,images/144.jpg,images/145.jpg,images/146.jpg,images/147.jpg","imgname":"广南铁皮石斛,底圩茶,广南西枫斗,广南八宝米,广南高峰黄牛"},
        		'丘北县':{"imgurl":"images/148.jpg,images/149.jpg","imgname":"丘北辣椒,邱北辣椒"},
        		'砚山县':{"imgurl":"images/150.jpg","imgname":"砚山小粒花生"},
        		'西畴县':{"imgurl":"images/151.jpg","imgname":"西畴阳荷"},
        		'文山市':{"imgurl":"images/152.jpg,images/153.jpg","imgname":"文山三七,文山他披梨"},
        		'芒市':{"imgurl":"images/154.jpg","imgname":"芒市石斛"},
        		'梁河县':{"imgurl":"images/155.jpg,images/156.jpg","imgname":"梁河葫芦丝,回龙茶"},
        		'盈江县':{"imgurl":"images/157.jpg","imgname":"德宏香软米"},
        		'瑞丽市':{"imgurl":"images/158.jpg","imgname":"瑞丽柠檬"},
        		'陇川县':{"imgurl":"images/159.jpg","imgname":"德宏咖啡"},
        		'腾冲':{"imgurl":"images/160.jpg,images/161.jpg,images/162.jpg,images/163.jpg,images/164.jpg","imgname":"腾冲红花油茶油,腾冲饵丝,明光小耳猪,腾冲雪鸡,槟榔江水牛"},
        		'施甸县':{"imgurl":"images/165.jpg,images/166.jpg","imgname":"保山烟叶,保山猪"},
        		'龙陵县':{"imgurl":"images/167.jpg,images/168.jpg,images/169.jpg,images/170.jpg","imgname":"龙陵紫皮石斛,龙陵黄山羊,龙陵黄龙玉雕,保山小粒咖啡"},
        		'昌宁':{"imgurl":"images/171.jpg,images/172.jpg,images/173.jpg","imgname":"昌宁核桃,保山甜柿,保山绿蚕豆"},
        		'贡山县':{"imgurl":"images/174.jpg","imgname":"独龙牛"},
        		'兰坪':{"imgurl":"images/175.jpg","imgname":"兰坪乌骨绵羊"},
        		'福贡县':{"imgurl":"images/176.jpg","imgname":"福贡云黄连"},
        		'香格里拉市':{"imgurl":"images/177.jpg,images/178.jpg,images/179.jpg","imgname":"香格里拉牦牛肉,香格里拉松茸,香格里拉青稞"},
        		'维西县':{"imgurl":"images/180.jpg","imgname":"维西百花蜜"},
        		'德钦县':{"imgurl":"images/181.jpg,images/182.jpg","imgname":"迪庆藏猪,迪庆高原葡萄酒"},
        	}
        	
      
		var convertData = function(data) {
			var res = [];
			for (var i = 0; i < data.length; i++) {
				var geoCoord = geoCoordMap[data[i].name];

				var imagCoord= imgMap[data[i].name]
				var  str = JSON.stringify(imagCoord)
				var  urls = '';
				var names ='';
				if(str != undefined){
					 urls = JSON.parse(str).imgurl
					 names = JSON.parse(str).imgname
				}
				

				if (geoCoord) {
					
						res.push({
							name : data[i].name,
							value : geoCoord.concat(data[i].value),
							imgname:names,
							imgurl:urls,
						});
				
				
				}
			}
			return res;
		};


		// 指定图表的配置项和数据
		var option = {
			title : {
				text: '云南国家级地理标志产品名录',
				left : 'center',
				textStyle : {
					color : '#fff'
				}
			},
			 tooltip: {
			        trigger: 'item',
			        backgroundColor:'#ffffff',
			        formatter: function (params) {
			        	var imgnames = params.data.imgname.split(',');
						var imgurl =  params.data.imgurl.split(',');
						var count = params.data.imgname.length;
						var divwidth = imgnames.length>3?3:imgnames.length;
						var result = '<div style="width:'+360+'px;overflow:hidden;background: #ffffff;border:none;">'+
					 	             '<div class="panel-heading" style="padding: 0px 0px;color: #000000;margin-left:10px;"; >'+params.data.name+'地理标志产品'+
				                     '</div>'+
				                     '<div>'+
				                     '<hr style="margin-bottom: 10px">'+
				                     '</div>'
						if(count>0){
							for(var i=0;i<imgnames.length;i++){
								result = result+
								'<div style="float: left;height:150px;margin-left:'+divwidth*5+'px;"><img style ="width:100px;height:100px;border-radius:10px;" src = "'+imgurl[i]+'"><div style ="text-align:center;color: #000000">'+imgnames[i]+'</div></div>'
								
							}
						
						}
						result = result + '</div>'; 
			            return result;
			            
			            
			        },
			        // position: [500, 10],
	 		        triggerOn: 'click'
			    },

			geo : {
				map : '云南',

				zoom : 1.2,
				label : {					
					normal : {
						show : true,
			            textStyle: {
			                color: 'white'
			            },
					}
				},
				roam : true,
				itemStyle : {
				  normal : {
						areaColor : '#255ba6',
						borderColor : '#0c171f',
						
					},
					emphasis : {
						areaColor : '#9c9fa0'
						
					}  
				}
			},
			series : [
// 				{
// 				name : '市、县',
// 				type : 'scatter',
// 				coordinateSystem : 'geo',
// 				data : convertData(data),
// 				symbolSize : function(val) {
// 					return val[1] /2;
// 				},
// 				label : {
// 					normal : {
// 						formatter : '{b}',
// 						position : 'right',
// 						show : false
// 					}
		
// 				},
// 				itemStyle : {
// 					normal : {
// 						color : '#ddb926'
// 					}
// 				}
//  			}
 			
 			{
				name : '县',
				type : 'effectScatter',
				coordinateSystem : 'geo',
				data : convertData(data.sort(function(a, b) {
					return b.value - a.value;
				}).slice(0, 100)),
				symbolSize : function(val) {
					var v = val[2];
					return v*8 ;
				},
				showEffectOn : 'render',
				rippleEffect : {
					brushType : 'stroke'
				},
				hoverAnimation : true,
				label : {
					normal : {
						formatter : '{b}',
						position : 'right',
						show : true
					}
				},
				itemStyle : {
					normal : {
						color : '#f4e925',
						shadowBlur : 1,
						shadowColor : '#333',
					}
				},
				zlevel : 1
			},

			]
			
			
		};

		// 使用刚指定的配置项和数据显示图表。
		myChart.setOption(option);